package com.example.finalhomework.secondhomework

class ProgramExpert {
    //根据传入的特性字符串返回相应的编程语言名称
    fun getLanguage(feature:String) = when(feature){
        "快速" -> "C"
        "容易" -> "Python"
        "新语言" -> "kotlin"
        "面向对象" -> "java"
        else -> "Unknown"
    }
}